<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_base_project_apply".
 *
 * @property string $id
 * @property string $school_id 学校主办单位ID
 * @property string $major_id 专业ID
 * @property string $project_id 项目ID
 * @property string $status 申请状态
 * @property string $apply_user_id 申请人
 * @property string $apply_time 申请时间
 * @property string $note 备注
 */
class TBaseProjectApply extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_base_project_apply';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['apply_time'], 'safe'],
            [['id', 'school_id', 'major_id', 'project_id', 'apply_user_id'], 'string', 'max' => 36],
            [['status'], 'string', 'max' => 64],
            [['note'], 'string', 'max' => 255],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'school_id' => 'School ID',
            'major_id' => 'Major ID',
            'project_id' => 'Project ID',
            'status' => 'Status',
            'apply_user_id' => 'Apply User ID',
            'apply_time' => 'Apply Time',
            'note' => 'Note',
        ];
    }
}
